<?php
// mod文件只能被入口文件引用，不能直接访问
if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

include_once(DISCUZ_ROOT.'./source/class/class_tree.php');
$tree = new tree();

// 益智故事

$sql = " select * from t_topic t where (t.id = 6 or (t.id > 6 and layer > 1)) ";
$query = DB::query($sql);
while($row = DB::fetch($query)) {
	$tree->setNode($row['id'], $row['parent_id'], $row);
}
DB::free_result($query);

include_once template("down/story");
?>